#ifndef __DICT_PRODUCER_H__
#define __DICT_PRODUCER_H__
#include"SplitToolJieba.h"

#include<vector>
#include<string>
#include<map>
#include<set>

using std::map;
using std::vector;
using std::string;
using std::set;
using std::pair;

class DictProducer
{
public:

    DictProducer(string,SplitTool* splittool);

    void buildEndict();

    void createIndex();

    void store();

    void showFiles() const;

    void showDict() const;

private:

    vector<string> _files;

    vector<pair<string,int>> _dict;

    map<string,set<int>> _index;

    SplitTool* _cuttor;
};

#endif
